package com.sun.stockexchangesimulate.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;

/**
 * 存储股票的基本信息
 * @author sun
 * @TableName stock
 */
@TableName(value ="stock")
@Data
@Builder
public class Stock implements Serializable {
    /**
     * 股票id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 股票代码
     */
    private String code;

    /**
     * 公司id
     */
    private Integer companyId;

    /**
     * 发行数量
     */
    private Integer issuedQuantity;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}